package marksys.free.com.marksys.nettool.vo;

import android.os.Parcel;
import android.os.Parcelable;

public class ScoreRecords implements Parcelable {

    public long id;
    public String className;
    public String project;
    public double score;
    public int type;
    public long time;
    public String hour;

    protected ScoreRecords(Parcel in) {
        id = in.readLong();
        className = in.readString();
        project = in.readString();
        score = in.readDouble();
        type = in.readInt();
        time = in.readLong();
        hour = in.readString();
    }

    public static final Creator<ScoreRecords> CREATOR = new Creator<ScoreRecords>() {
        @Override
        public ScoreRecords createFromParcel(Parcel in) {
            return new ScoreRecords(in);
        }

        @Override
        public ScoreRecords[] newArray(int size) {
            return new ScoreRecords[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(id);
        dest.writeString(className);
        dest.writeString(project);
        dest.writeDouble(score);
        dest.writeInt(type);
        dest.writeLong(time);
        dest.writeString(hour);
    }

    @Override
    public String toString() {
        return "ScoreRecords{" +
                "id=" + id +
                ", className='" + className + '\'' +
                ", project='" + project + '\'' +
                ", score='" + score + '\'' +
                ", type='" + type + '\'' +
                ", time='" + time + '\'' +
                ", hour='" + hour +
                '}';
    }
}
